﻿ 

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Apps.Models.Sys
{
  
    public partial class SysStructModel
    {
        [NotNullExpression]
        [IsCharExpression]
        [MaxWordsExpression(50)]
        [Display(Name = "Id")]
        public override string Id { get; set; }

        [MaxWordsExpression(50)]
        [Display(Name = "名称"),Required]
        public override string Name { get; set; }

        [MaxWordsExpression(50)]
        [Display(Name = "上级部门")]
        public override string ParentId { get; set; }
        public string ParentName { get; set; }

        [Display(Name = "排序")]
        public override int Sort { get; set; }

        [Display(Name = "创建时间")]
        public override DateTime CreateTime { get; set; }

        [Display(Name = "上属")]
        public override string Higher { get; set; }

        [Display(Name = "是否启用"),Required]
        public override bool Enable { get; set; }

        [Display(Name = "说明"),DataType(DataType.MultilineText)]
        public override string Remark { get; set; }
      

        public List<SysStructModel> clildren { get; set; }

        public  string Type { get; set; }//member or group
        public  string state { get;set;}

    }
}

